Skip to content

feat(core): Add network config module for protocol upgrade impact analysis#87

Merged
ayomideadeniran merged 1 commit intoSoroLabs:mainfrom
martinvibes:protocol-upgrade
Feb 25, 2026
Merged

feat(core): Add network config module for protocol upgrade impact analysis#87
ayomideadeniran merged 1 commit intoSoroLabs:mainfrom
martinvibes:protocol-upgrade

Conversation

@martinvibes
Copy link
Copy Markdown
Contributor

  • Create new network_config.rs module with NetworkConfig struct for managing protocol-specific cost parameters and resource limits
  • Add NetworkConfigInput enum to support both preset names and custom configuration objects in API requests
  • Extend AnalyzeRequest with optional network_config field for shadow network configuration during analysis
  • Add protocol_impact field to ResourceReport to surface protocol upgrade impact comparisons
  • Implement resolve_preset() function to map preset names (protocol_21, p21, current, protocol_22, p22, next, upcoming, custom, private) to configurations
  • Update analyze() endpoint to resolve shadow network config and pass it through the simulation pipeline
  • Enable fee calculation and resource limit validation across different protocol versions for impact analysis

closes #73

…lysis

- Create new `network_config.rs` module with `NetworkConfig` struct for managing protocol-specific cost parameters and resource limits
- Add `NetworkConfigInput` enum to support both preset names and custom configuration objects in API requests
- Extend `AnalyzeRequest` with optional `network_config` field for shadow network configuration during analysis
- Add `protocol_impact` field to `ResourceReport` to surface protocol upgrade impact comparisons
- Implement `resolve_preset()` function to map preset names (protocol_21, p21, current, protocol_22, p22, next, upcoming, custom, private) to configurations
- Update `analyze()` endpoint to resolve shadow network config and pass it through the simulation pipeline
- Enable fee calculation and resource limit validation across different protocol versions for impact analysis
@ayomideadeniran
Copy link
Copy Markdown
Collaborator

Pr under review.

@ayomideadeniran
Copy link
Copy Markdown
Collaborator

@martinvibes Nice Implementations.

@ayomideadeniran ayomideadeniran merged commit 0ee0f7a into SoroLabs:main Feb 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] Protocol Upgrade Impact Simulator (Settings Snapshots)

2 participants